<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    *{
      padding: 0;
      margin: 0;
      text-decoration: none;
      list-style: none;
      color: #000;
    }
    .nav ul{
      width: 1200px;
      height: 100px;
      background-color: #e6e7e2;
      margin: 0 auto;
    }
    .nav li{
      float: left;
    
    }
    .nav li a{
      color: #777;
      font-size: 2.5rem;
      padding: 0 35px;
      display: inline-block;
      line-height: 100px;
    }
    .nav li a:hover{
      background-color: #3d403d;
      color: aliceblue;
    }
    .nav li:last-child a{
      padding: 0 40px;
    }
  </style>
</head>
<body style="font-size: 18px;font-family: 'Times New Roman', Times, serif;">
  <div class="nav">
    <ul>
      <li><a href="#1">导航1</a></li>
      <li><a href="#2">导航2</a></li>
      <li><a href="#3">导航3</a></li>
      <li><a href="#4">导航4</a></li>
      <li><a href="#5">导航5</a></li>
      <li><a href="#6">导航6</a></li>
      <li><a href="#7">导航7</a></li>
    </ul>
  </div>
</body>
</html>